﻿using System;
using System.Collections.Generic;
using log4net;
using log4net.Config;

namespace Zeus.Core.Fundermental.Transform
{
    public class GenericTransformer<T>
    {
        private static readonly ILog logger = LogManager.GetLogger("loggerInfo");

        public delegate T Transformer(T x);

        //Transform the elements in an array
        public static void ArrayTransform(T[] values, Transformer t)
        {
            logger.Info("Transformer Start!");

            for (int i = 0; i < values.Length; i++)
                values[i] = t(values[i]);
        }
    }
}
